"""
@Project: pythonPro1
@Name: test.py
@Author: linxin_liu
@Date: 2022/9/25 15:10
"""

from dataclasses import dataclass


@dataclass
class A:
    x: int
    y: int

    def add(self):
        return self.x + self.y


a = A(1, 2)
print(a.add())

